package com.app.miwawa.api.esm.entity.customer;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 沟通记录表（销售记录）
 * <p>描述: 客户资料</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年1月26日 下午12:46:25
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_ESM_CUSTOMER_SELLING")
public class Selling extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -5534147817300044591L;

	// 意向程度
	@Column(name = "intention", nullable = true)
	private int intention;
	
	// 跟踪情况
	@Column(name = "content", length = 500, nullable = true)
	private String content;
	
	// 下次沟通时间
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
	@Column(name = "next_date", nullable = true)
	private Date nextDate;
	
	// 沟通时间
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
	@Column(name = "create_date", nullable = true)
	private Date createDate;

	// 顾问ID
	@Column(name = "user_id", length = 50, nullable = true)
	private String userid;
	
	// 顾问姓名
	@Column(name = "user_name", length = 50, nullable = true)
	private String username;
	
	// 客户ID
	@Column(name = "customer_id", length = 50, nullable = true)
	private String customerId;

	public int getIntention() {
		return intention;
	}

	public void setIntention(int intention) {
		this.intention = intention;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getNextDate() {
		return nextDate;
	}

	public void setNextDate(Date nextDate) {
		this.nextDate = nextDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
}
